<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 300px;
            height: 200px;
            background-color: #eee;
        }

        .box h1 {
            /* 元素的位置就没了 */
            display: none;
        }

        .box:hover h1 {
            display: block;
        }
    </style>
</head>

<body>

    <div class="box">
        <h1>1111</h1>
        <p>2222</p>
    </div>

</body>

</html>